﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="weak3._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="CarsDB" AllowSorting="True" BackColor="White" 
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" 
                InsertVisible="False" ReadOnly="True" />
            <asp:BoundField DataField="ModelName" HeaderText="ModelName" 
                SortExpression="ModelName" />
            <asp:BoundField DataField="ModelYear" HeaderText="ModelYear" 
                SortExpression="ModelYear" />
            <asp:BoundField DataField="CC" HeaderText="CC" 
                SortExpression="CC" />
            <asp:BoundField DataField="Make" HeaderText="Make" SortExpression="Make" />
            <asp:BoundField DataField="Condition" HeaderText="Condition" 
                SortExpression="Condition" />
            <asp:BoundField DataField="Registration" HeaderText="Registration" 
                SortExpression="Registration" />
            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
            <asp:BoundField DataField="ContactNumber" HeaderText="ContactNumber" 
                SortExpression="ContactNumber" />
            <asp:BoundField DataField="Pictue" HeaderText="Pictue" 
                SortExpression="Pictue" />
            <asp:BoundField DataField="InfoURL" HeaderText="InfoURL" 
                SortExpression="InfoURL" />
            <asp:HyperLinkField DataNavigateUrlFields="SellerPostCode" 
                DataNavigateUrlFormatString="http://maps.google.co.uk/?q=AL109AB" 
                DataTextField="SellerPostCode" />
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
    <asp:SqlDataSource ID="CarsDB" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CarsCon %>" 
        ProviderName="<%$ ConnectionStrings:CarsCon.ProviderName %>" 
        SelectCommand="SELECT * FROM [classicCars]"></asp:SqlDataSource>
    <br />
</p>
</asp:Content>
